package com.kujie.ai;

import com.kujie.ai.dify.api.DifyChatSseApi;
import com.kujie.ai.dify.core.EnableDifyApi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * $describe
 *
 * @author check
 * @date 2025-08-05
 */
@EnableDifyApi
@SpringBootApplication
@EnableConfigurationProperties
public class DifyApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(DifyApplication.class, args);

        // 检查 DifyChatSseApi bean 是否存在
        String[] beanNames = context.getBeanNamesForType(DifyChatSseApi.class);
        System.out.println("DifyChatSseApi beans found: " + beanNames.length);
        for (String beanName : beanNames) {
            System.out.println("Bean name: " + beanName);
        }
    }
}